<script lang="ts" setup>
import SideBarItem from "./SideBarItem.vue";
import UseUserStore from '@/stores/UseUserStore'

let store = UseUserStore()

const handleOpen = (key: string, keyPath: string[]) => {
  console.log(key, keyPath)
}
const handleClose = (key: string, keyPath: string[]) => {
  console.log(key, keyPath)
}
</script>

<template>
  <el-row class="tac">
    <el-col :span="24">
      <el-menu
          class="el-menu-vertical-demo"
          default-active="2"
          @close="handleClose"
          @open="handleOpen"
      >
        <SideBarItem v-for="(item,index) in  store.userMean" :key="item.path" :route="item"></SideBarItem>
      </el-menu>
    </el-col>
  </el-row>
</template>

